package com.Iron.Component;

import org.springframework.context.ApplicationContext;

import javax.servlet.ServletContext;

public class WebApplicationContextUtils {


    public static ApplicationContext getApplication(ServletContext servletContext){
        ApplicationContext applicationContext = (ApplicationContext) servletContext.getAttribute("application");
        return applicationContext;
    }
}
